<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp"%>
<%@ taglib prefix="sys" tagdir="/WEB-INF/tags" %>

<html>
<head>
    <title>license续期页面</title>
  <jsp:include page="../../commons/common-add.jsp"></jsp:include>
  <script type="text/javascript" src="${basePath}/statics/modules/license/js/license_renewal.js"></script>
</head>
<body>
  <sys:message msgContent="${message}"/>
    <div class="box-body" >
        <form id="inputForm"   class="form-horizontal ">
          <div class="top-form-element-margin">
              <div class="row form-group line-height-34">
                  <label for="subject" class="col-sm-3 control-label text-pull-right" >
                      名称:
                  </label>
                  <div class="col-sm-4">
                      <input type="text" autofocus class="required form-control" style="display: inline;" id="subject" name="licenseMain.subject"  readonly="readonly"   value="${license.licenseMain.subject}">
                  </div>
              </div>
            <div style="display:none;">
              <input type="text" autofocus class="required form-control" style="display: inline;"  name="licenseMain.id"  value="${license.licenseMain.id}">
            </div>
            <div class="row form-group line-height-34">
              <label  class="col-sm-3 control-label text-pull-right">
                <b class="must-star">*</b>
                License 版本选择
              </label>
              <div class="col-sm-4">
                <select autofocus class="form-control required" id="licenseTemplate-id"  name="licenseTemplate.id">
                </select>
                <input type="hidden" name="licenseTemplate.type" id="licenseTemplate-type" value="${license.licenseTemplate.type}"/>
              </div>
            </div>
            <div class="row form-group line-height-34">
              <label for="not_before" class="col-sm-3 control-label text-pull-right" >
                <b class="must-star">*</b>
                开始时间:
              </label>
              <div class="col-sm-4">
                <input type="date" autofocus class="required form-control" style="display: inline;" id="not_before" name="notBefore"   value="<fmt:formatDate value="${license.notBefore}" pattern="yyyy-MM-dd" />">
              </div>
            </div>
            <div class="row form-group line-height-34">
              <label for="validity" class="col-sm-3 control-label text-pull-right" >
                <b class="must-star">*</b>
                时长(天):
              </label>
              <div class="col-sm-4">
                <input type="text" autofocus class="required form-control" style="display: inline;" id="validity" name="validity"  value="${license.validity}">
              </div>
            </div>
            <div class="row form-group line-height-34">
              <label for="info" class="col-sm-3 control-label text-pull-right" >
                说明信息:
              </label>
              <div class="col-sm-4">
                <input type="text" autofocus class="required form-control" style="display: inline;" id="info" name="info"  value="${license.info}">
              </div>
            </div>
            <div class="row form-group line-height-34">
              <label for="motherboard" class="col-sm-3 control-label text-pull-right" >
                <b class="must-star">*</b>
                主板序列号:
              </label>
              <div class="col-sm-4">
                <input type="text" autofocus class="required form-control" style="display: inline;" id="motherboard" name="motherboard"  value="${license.motherboard}">
              </div>
            </div>
            <div class="row form-group line-height-34">
              <label for="system" class="col-sm-3 control-label text-pull-right" >
                <b class="must-star">*</b>
                系统序列号:
              </label>
              <div class="col-sm-4">
                <input type="text" autofocus class="required form-control" style="display: inline;" id="system" name="system"  value="${license.system}">
              </div>
            </div>
            <div class="row form-group line-height-34">
              <label for="machine" class="col-sm-3 control-label text-pull-right" >
                <b class="must-star">*</b>
                主机管理数量:
              </label>
              <div class="col-sm-4">
                <input type="text" autofocus class="required form-control" style="display: inline;" id="machine" name="machine"  value="${license.machine}">
              </div>
            </div>
            <div class="form-group line-height-34">
              <label for="cpu" class="col-sm-3 control-label text-pull-right"><b class="must-star">*</b>cpu序列号:</label>

              <div class="col-sm-4">
                <textarea type="te"  class="form-control" id="cpu" name="cpu" placeholder="cpu序列号"  cols="30" rows="5"
                >${license.cpu}</textarea>
              </div>
            </div>
            <div class="form-group line-height-34">
              <label for="cpu" class="col-sm-3 control-label text-pull-right"><b class="must-star">*</b>Mac地址:</label>

              <div class="col-sm-4">

                <textarea type="te"  class="form-control" id="mac" name="mac" placeholder="Mac地址"  cols="30" rows="5"
                >${license.mac}</textarea>

              </div>
            </div>
            <div class="form-group line-height-34">
              <label for="cpu" class="col-sm-3 control-label text-pull-right"><b class="must-star">*</b>用户ip:</label>

              <div class="col-sm-4">
                <textarea type="te"  class="form-control" id="ip" name="ip" placeholder="用户ip"  cols="30" rows="5"
                >${license.ip}</textarea>
              </div>
            </div>
            <div class="form-group line-height-34">
              <label for="cpu" class="col-sm-3 control-label text-pull-right"><b class="must-star">*</b>硬盘信息:</label>

              <div class="col-sm-4">
                <textarea type="te"  class="form-control" id="disk" name="disk" placeholder="硬盘信息"  cols="30" rows="5"
                >${license.disk}</textarea>
              </div>
            </div>
            <div class="form-group" style="padding-left: 300px;">
              <input id="btnSubmit" class="btn btn-primary"  type="submit" onclick="renewalLicense()" value="提交"/>
              <%--<input id="btnCancel" class="btn btn-cancle" type="button" style="margin-left: 20px" onclick="formReset()" value="重置" />--%>
            </div>
          </div>
        </form>
      </div>
</body>
</html>
